<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container {
        width: 1000px;
        height: 800px;
        border: 1px solid #ddd;
        display: flex;
      }
      .container-pre {
        width: 500px;
        flex: 1;
        overflow: auto;
        border: 1px solid #ddd;
      }
      .preview {
        width: 500px;
        flex: 1;
        overflow: auto;
        border: 1px solid #ddd;
      }
      pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
      }
    </style>
  </head>
  <body>
    <div id="root"></div>
    <div id="container" class="container">
      <pre
        class="container-pre"
        contenteditable="true"
        id="container-pre"
      ></pre>
      <pre class="container-pre preview hidden" id="container-preview"></pre>
    </div>
    <button id="clear" class="border border-solid border-red-300 p-2">
      clear plugins
    </button>

    <button id="preview" class="mt-2 border border-solid border-red-300 p-2">
      preview
    </button>

    <button id="source" class="mt-2 border border-solid border-red-300 p-2">
      source
    </button>
  </body>
</html>
